<#-- 角色管理新增页面 -->
<#import layoutTemplet as layout>
<#assign contextPath=request.getContextPath()>
<#-- 调用布局指令 -->
<@layout.html>
<#escape x as x?html>

<#-- 导航区 -->
<div class="breadcrumbs ace-save-state breadcrumbs-fixed" id="breadcrumbs">
    <ul class="breadcrumb">
        <li>
            <i class="ace-icon fa fa-home home-icon"></i>
            <span class="grey">主数据</span>
        </li>
        <li class="active">
            <span class="grey">机构合同</span>
        </li>
    </ul>
    <div class="nav-search" id="nav-search">
        <button class="mfui-btn mfui-btn-primary mfui-btn-sm" id="headGoBackBtn">　返回　</button>
    </div>
</div>

<#-- 新增表单 -->
<div class="page-content">
    <div class="page-header">
        <h1>
            机构合同
            <small>
                <i class="ace-icon fa fa-angle-double-right"></i>
                新增
            </small>
        </h1>
    </div>
    <div class="row">
        <div class="col-xs-12">
            <form id="addForm" class="form-horizontal">
                <div class="form-group">
                    <label class="col-sm-4 control-label no-padding-right" for="orgNo">
                        <span class="red">*</span> 机构名称
                    </label>
                    <div class="col-sm-4">
                        <select class="form-select2" id="orgNo" name="orgNo" data-rule="required">
                            <option value="">请选择</option>
                            <#list orgInfos as orgInfo>
                                <option value="${orgInfo.uniqueNo}">${orgInfo.orgName}</option>
                            </#list>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label no-padding-right" for="contractTypeCode">
                        <span class="red">*</span> 合同类型
                    </label>
                    <div class="col-sm-4">
                        <select class="form-select2" id="contractTypeCode" name="contractTypeCode" data-rule="required">
                            <option value="">请选择</option>
                            <#list ContractTypeEnum as element>
                                <option value="${element.index}">${element.name}</option>
                            </#list>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label no-padding-right" for="contractAmount">
                        <span class="red">*</span> 合同金额
                    </label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control col-sm-12" id="contractAmount" name="contractAmount" data-rule="required" maxlength="50"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label no-padding-right" for="effectiveData">
                        <span class="red">*</span> 生效时间
                    </label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control col-sm-12" id="effectiveData" name="effectiveData" data-rule="required" maxlength="50"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label no-padding-right" for="failureData">
                        <span class="red">*</span> 失效时间
                    </label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control col-sm-12" id="failureData" name="failureData" data-rule="required" maxlength="50"/>
                    </div>
                </div>
                <div class="form-group">
                    <hr class="hr hr-32"/>
                    <div class="center">
                        <button type="button" class="mfui-btn mfui-btn-normal mfui-btn-lg" id="saveBtn">
                            保存
                        </button>
                        <button type="button" class="mfui-btn mfui-btn-primary mfui-btn-lg" id="goBackBtn">
                            返回
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<script src="${contextPath}/public/js/opt/contract/org_contract_add.js"></script>
</#escape>
</@layout.html>